package com.yygo.service.impl;

import com.yygo.dao.DealerDao;
import com.yygo.model.BondCompany;
import com.yygo.model.Dealer;
import com.yygo.model.User;
import com.yygo.service.DealerManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * Created by tiansha on 2015/6/17.
 */
@Service("dealerManager")
public class DealerManagerImpl extends GenericManagerImpl<Dealer, Long> implements DealerManager {

    private DealerDao dealerDao;

    @Autowired
    public DealerManagerImpl(DealerDao dealerDao) {
        super(dealerDao);
        this.dealerDao = dealerDao;
    }

    public List<User> getUsers(Long dealerId) {
        return dealerDao.getUsers(dealerId);
    }

}
